---
title: 留言墙
layout: post
slug: messageWall
noDate: true
comments: false
toc: false 
share: true 
---
<!-- share = true 表示关闭分享 -->
<div class="valine_comment"></div>
<!--载入js，在</body>之前插入即可-->
<!--Leancloud 操作库:-->
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
<!--Valine 的核心代码库-->
<script src="//unpkg.com/valine/dist/Valine.min.js"></script>
<script>
  const config = {
    appid: 'vrMD3RTAgfKjAa8MuW9JGkxV-gzGzoHsz', // Leancloud应用的appId
    appkey: 'xKaLoQKsnXU606LYXNKpjPSm', // Leancloud应用的appKey
    verify: true, // 验证码
    notify: true, // 评论回复提醒
    placeholder: '老司机来一发吧 O(∩_∩)O~~' //评论框占位符
  }

  var notify = config.notify === true ? true : false;
  var verify = config.verify === true ? true : false;
  new Valine({
      // AV 对象来自上面引入av-min.js(老司机们不要开车➳♡゛扎心了老铁)
      av: AV,
      el: '.valine_comment',
      emoticon_url: 'https://cloud.panjunwen.com/alu',
      emoticon_list: ["狂汗.png","不说话.png","汗.png","坐等.png","献花.png","不高兴.png","中刀.png","害羞.png","皱眉.png","小眼睛.png","暗地观察.png"],
      app_id: config.appid,
      app_key: config.appkey,
      avatar: 'monsterid', // (''/mp/identicon/monsterid/wavatar/robohash/retro/hide)
      placeholder: config.placeholder
    });

  const tipBox = document.querySelector('.vempty');
  const vnickInput = document.querySelector('.vnick');

  const powerTips = document.querySelector('.power');
  powerTips.style.display = 'none';
  setTimeout(() => {
    tipBox.innerText = '快来做第一个留言的人吧~~';
    vnickInput.value = '';
  }, 100)
</script>